package com.nbsaas.boot.common.rest.convert;

import com.nbsaas.boot.common.data.entity.Modular;
import com.nbsaas.boot.common.api.domain.response.ModularResponse;

import com.nbsaas.boot.utils.BeanDataUtils;
import com.nbsaas.boot.rest.api.Converter;
/**
* 模块-实体对象转化成响应对象
*/

public class ModularResponseConvert  implements Converter<ModularResponse,Modular> {

    @Override
    public ModularResponse convert(Modular source) {
        ModularResponse  result = new  ModularResponse();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }

}

